-- GENERATED SPELL FOR [Saltspittle Puddlejumper] --


function spell0_3737(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_3737', 600, 1)
end

function spell1_3737(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_3737', 3000, 1)
end

function Sorts_3737(pUnit, Event)
local choix_sorts_3737 = math.random(0, 1)
if choix_sorts_3737 == 0 then
pUnit:RegisterEvent('spell0_3737', 1, 1)
end
if choix_sorts_3737 == 1 then
pUnit:RegisterEvent('spell1_3737', 1, 1)
end
end

function mob3737_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3737', math.random(1500, 3000), 1)
end

function mob3737_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3737_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3737_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3737, 1, 'mob3737_Action')
RegisterUnitEvent(3737, 2, 'mob3737_Leave')
RegisterUnitEvent(3737, 3, 'mob3737_Kill')
RegisterUnitEvent(3737, 4, 'mob3737_Die')
